package com.chixing.day03_oop;

public class Phone {
    private int phoneId;
    private String phoneName;
    private float phonePrice;
    private String phoneBrand;

    public int getPhoneId() {
        return phoneId;
    }

    public void setPhoneId(int phoneId) {
        this.phoneId = phoneId;
    }

    public String getPhoneName() {
        return phoneName;
    }

    public void setPhoneName(String phoneName) {
        this.phoneName = phoneName;
    }

    public float getPhonePrice() {
        return phonePrice;
    }

    public void setPhonePrice(float phonePrice) {
        this.phonePrice = phonePrice;
    }

    public String getPhoneBrand() {
        return phoneBrand;
    }

    public void setPhoneBrand(String phoneBrand) {
        this.phoneBrand = phoneBrand;
    }
    public Phone(){
        System.out.println("无参的构造方法");
    }
    public Phone(int id,String name,float price,String brand){
        this.phoneId = id;
        this.phoneName = name;
        this.phonePrice = price;
        this.phoneBrand = brand;
    }

    public void show(){
        System.out.println(phoneId+","+phoneName+","+phonePrice+","+phoneBrand);
    }
}
